<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>蒙牛会员后台管理</title>
<meta name="Copyright" content="Douco Design." />
<link href="__PUBLIC__/app/admin/css/public.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/app/admin/css/page.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__PUBLIC__/app/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/app/admin/js/global.js"></script>
<link rel="stylesheet" href="__PUBLIC__/js/layer/skin/layer.css" />
<script src="__PUBLIC__/js/layer/layer.js" type="text/javascript"></script>

</head>
<body>
  <div class="container">
      


    <!-- <div id="dcMain"> -->
      <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">

        <h3>人民币余额：{$member_account.account_type_1}</h3>


        <div class="items">
       <!-- <form action="{:U('Member/saveZhangHu')}" method="post" enctype="multipart/form-data"> -->
        <div id="member_id" value="{$member_account.member_id}">
        <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">

        <tr>
           <th width="131">名称</th>
           <th>内容</th>
        </tr>
       
        
        <tr>
          <td align="right">积分  ：</td>
          <td>
            <input type="text" name="money" size="80" class="inpMain" id="money" />
          </td>
        </tr>
        </table>
        </div>
        <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
         <tr>
          <td width="131"></td>
          <td>
           <input name="submit" class="btn" type="submit" value="提交" onclick="subJiFen({$member_account.member_id})" />
          </td>
         </tr>
        </table>
        <!-- </form> -->
      </div>
      <br>
        <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
            <tr>
                <th align="center">日志编号</th>
                <th align="center">用户</th>
                <th align="center">财务类型</th>
                <th align="center">内容</th>
                <th align="center">金额</th>
                <th align="center">余额</th>
                <th align="center">时间</th>
            </tr>
           <volist name="finance" id="vr" empty="$empty">
            <tr>
                <td align="center">{$vr.finance_id}</td>
                <td align="center">{$vr.name}</td>
                <td align="center">{$vr.type_name}</td>
                <td align="center">{$vr.content}</td>
                <td align="center">{$vr.money}</td>
                 <td align="center">{$vr.balance}</td>
                <td align="center">{$vr.add_time|date="Y-m-d H:i:s",###}</td>
            </tr>
            </volist>
        </table>
        {$page}
        </div>



  </div>
<!--以下内容不要管-->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
  <div class="pswp__bg"></div>
  <div class="pswp__scroll-wrap">
    <div class="pswp__container">
      <div class="pswp__item"></div>
      <div class="pswp__item"></div>
      <div class="pswp__item"></div>
    </div>
    <div class="pswp__ui pswp__ui--hidden">
      <div class="pswp__top-bar">
        <div class="pswp__counter"></div>
        <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
        <div class="pswp__preloader">
          <div class="pswp__preloader__icn">
            <div class="pswp__preloader__cut">
                <div class="pswp__preloader__donut"></div>
                        </div>
                    </div>
                </div>
             </div>
             <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
              <div class="pswp__share-tooltip"></div> 
             </div>
             <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button>
             <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button>
             <div class="pswp__caption">
              <div class="pswp__caption__center"></div>
       </div>
    </div>
  </div>
</div>

        <script src="__PUBLIC__/app/admin/details/js/photoswipe.min.js"></script> 
        <script src="__PUBLIC__/app/admin/details/js/photoswipe-ui-default.min.js"></script> 
     
 
    </body>
</html>
<script type="text/javascript">
    function subJiFen(id){
        var money = $('#money').val();
        var url="{:U('Member/chongzhi')}";
        $.post(url,{'member_id':id,'money':money},function(data){
            layer.msg(data.info);
            if(data.status==1){
                setTimeout(function () { 
                    window.location.reload();
                }, 2000);
            }
        });
    }






</script>






